package com.ce.pms.renovation.dao;

import com.ce.pms.base.dao.IPmsBaseDao;
import com.ce.pms.renovation.model.RenovateRequisitionDO;
import com.ce.pms.renovation.vo.RenovateRequisitionQueryVO;
import com.sitechasia.webx.core.support.Page;

/**
 * 装修申请数据访问对象
 */
public interface IRenovateRequisitionDao extends IPmsBaseDao<RenovateRequisitionDO>
{

   /**
    * 查询装修申请
    * @param buildingId - 楼栋ID
    * @param houseNumber - 房号
    * @param state - 审批状态
    * @param pageSize
    * @param pageNumber
    * @return Page
    * @roseuid 493CB17E0119
    */
   public Page queryRequisitions(Long buildingId, String houseNumber, String state, int pageSize, int pageNumber);

   /**
    * 功能描述:装修申请查询，包括高级查询和普通查询<br>
    * @param queryCondition
    * @return<br>
    * Create author:罗军林<br>
    * Create on:2008-12-24<br>
    * Edit author:<br>
    * Edit on:<br>
    * Why:<br>
    */
   public Page queryRequisitions(RenovateRequisitionQueryVO queryCondition);

	/**
	 * 功能描述:得到指定房间没有完结（包括正常完结和异常完结）的装修申请<br>
	 * @param houseId
	 * @return<br>
	 * Create author:罗军林<br>
	 * Create on:2008-12-24<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public RenovateRequisitionDO getRenovateRequisitionDOByHouseId(Long houseId);

	/**
	 * 功能描述:getMaxRequistionNumber<br>
	 * @return<br>
	 * Create author:罗军林<br>
	 * Create on:2009-1-4<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public String getMaxRequistionNumber();

}